package com.jkm.boss.controller;

import com.jkm.boss.entity.BasicChannel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.jkm.boss.service.BasicChannelService;

import java.util.List;

/**
 * Created by shitou on 17/4/10.
 */
@Controller
public class IndexController {

    @Autowired
    private BasicChannelService basicChannelService;

    /**
     * 首页
     *
     * @return
     */
    @RequestMapping(value = "/**", method = RequestMethod.GET)
    public String index() {
        List<BasicChannel> result= basicChannelService.selectAll();
        return "index";
    }
}
